<?php
require_once 'db_conn.php';
header("content-type:text/html;charset=utf-8");
$id = $_POST['id'];
$id = intval($id);

$style = $_POST['style'];
$images = $_POST['images'];
$title_sort = $_POST['title_sort'];
$title_main = $_POST['title_main'];
$href = $_POST['href'];

$sql = "
UPDATE  `sente`.`pro` 
SET
`style` = '$style' ,
`title_main` = 'title_main' ,
`images` = '$images' ,
`href` = '$href' ,
`title_sort` = '$title_sort' 
WHERE `pro`.`id` = $id;
 ";

$result = $conn->query($sql);
//print_r($result);
header("location:index.php");
